var wrap = document.getElementById('wrap');
wrap.style.width = document.documentElement.clientWidth + 'px';
wrap.style.height = document.documentElement.clientHeight + 'px';
var btn1 = document.getElementById('btn1');
var btn2 = document.getElementById('btn2');
var span1 = document.getElementById('span1');
var heng = document.getElementById('heng');
//三个数随机
var arr=[68.7,72.9,83.7];
function randFn(max,min){
	return parseInt(Math.random()*(max-min+1)+min);
}
var a = randFn(2,0);
span1.innerHTML=arr[a]+"%";

//点击事件

btn2.addEventListener('touchstart',function(){
		window.open('num2.html','_self');
});
btn1.ontouchstart=function(){
	window.open('http://www.baidu.com');
}
